﻿using SD.Infrastructure.WPF.Caliburn.Aspects;
using SD.Infrastructure.WPF.Caliburn.Base;
using SlamDunk.MES.Presentation.Models.NotifyModels;
using System.Collections.ObjectModel;

namespace SlamDunk.MES.Client.ViewModels.Report
{
    /// <summary>
    /// 设备台时统计明细视图模型
    /// </summary>
    public class WorkOrderActualEquipmentsDetailtReportViewModel : ScreenBase
    {
        #region # 字段及构造器

        /// <summary>
        /// 依赖注入构造器
        /// </summary>
        public WorkOrderActualEquipmentsDetailtReportViewModel()
        {

        }

        #endregion

        #region # 属性

        #region 设备使用台时明细列表 —— ObservableCollection<EquipmentSummaryDetailNm> EquipmentSummaryDetailtReports
        /// <summary>
        /// 设备使用台时明细列表
        /// </summary>
        [DependencyProperty]
        public ObservableCollection<EquipmentSummaryDetailNm> EquipmentSummaryDetailtReports { get; set; }
        #endregion

        #endregion

        #region # 方法

        //Initializations

        #region 加载 —— void Load(EquipmentSummaryNm equipmentSummaryNm)
        /// <summary>
        /// 加载
        /// </summary>
        public void Load(EquipmentSummaryNm equipmentSummaryNm)
        {
            this.EquipmentSummaryDetailtReports = new ObservableCollection<EquipmentSummaryDetailNm>(equipmentSummaryNm.EquipmentSummaryDetails);
        }
        #endregion

        #endregion
    }
}
